<include file="Common/header" /> 
<title>栏目管理</title>
<style>
.norag{border:none !important; font-weight:normal !important}
</style>
</head>
<body>
<nav class="breadcrumb">
<div class="menu_4">
<a href="{:U('Admin/menu')}" class="active">后台菜单</a>
<a href="{:U('Admin/menu_add')}" >添加菜单</a> 
</div> 



<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont"></i></a></nav>




<div class="pd-20">
  <form class="J_ajaxForm" action="{:U('menu_order')}" method="post">
    <table class="table table-border table-bg table-hover" style="border-top:none">
    <colgroup>
        <col width="80">
        <col width="100">
        <col>
        <col width="80">
        <col width="200">
        </colgroup>
      <thead>
        <tr >
          <th  class="norag">排序</th>
          <th class="norag">ID</th>
          <th class="norag" >菜单英文名称</th>
          <th class="norag" >状态</th>
          <th class="norag">管理操作</th>
        </tr>
      </thead>
      <tbody>
 {$menu} 
       </tbody>
    </table>


<div style="height:60px;"></div>
    <div class="btn_wrap" style=" position:fixed; z-index:999; bottom:0; background:#EBEBEB; width:100%;  ">
      <div class="btn_wrap_pd" style="margin:10px 20px;">
        <button class="btn btn-primary radius " type="submit" style="padding:0 22px">排序</button>
      </div>
    </div>
  </form> 
  
  </div>
  <div style="position:fixed; bottom:0; height:51px; width:100%; background:#EBEBEB"></div>

 <script type="text/javascript">
 
/*-删除菜单*/
function menu_del(obj,idx){
	layer.confirm('确认要删除吗?',function(index){
		$.post(
		"{:U('menu_del')}",
		{id:idx},function(data){
			if(data.status == 1){
				$(obj).parents("tr").remove();
						layer.msg('已删除!',{icon:1,time:1000});
				}else{
						layer.msg(data.msg,{icon:2,time:1000});
					}
			},'json'
		);
		
		
		
	});
}
</script>
<script type="text/javascript">
$(function(){
   
	$(".J_ajaxForm").Validform({
		ajaxPost:true,
		tiptype:function(){},
 		callback:function(data){
			if(data.status=="y"){
				layer.msg('更新成功!!',{icon:1,time:1000},function(){location.href='';});
			}
		}
	});
	
 
})
</script>

</body>
</html>